package study01;

import java.util.Scanner;

public class Exercise04 {
    public static void main(String[] args) {
        Scanner sca = new Scanner(System.in);
        String str = sca.nextLine();
        String reverse = "";
        for (int i = str.length(); i>0; i--) {
            reverse += str.charAt(i-1);
        }
        System.out.println(reverse);
    }
}
